
#include "FinerySuit.h"
#include <iostream>

using namespace npDecorator;
using namespace std;


FinerySuit::FinerySuit() : PersonFinery()
{

}

FinerySuit::~FinerySuit()
{

}

FinerySuit::FinerySuit(const FinerySuit& cpy) : PersonFinery(cpy)
{

}

FinerySuit& FinerySuit::operator=(const FinerySuit& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        PersonFinery::operator=(asn);
        return *this;
    }
}

FinerySuit* FinerySuit::clone() const
{
    return new FinerySuit(*this);
}

void FinerySuit::show() const
{
    cout << "西装";
    if (this->person)
    {
        this->person->show();
    }
}
